package com.bysc.executor.client;

import com.bysc.commonutils.Results;
import com.bysc.commonutils.vo.CmsActivity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@Component
@FeignClient(value = "service-cms", fallback = CmsDegradeFeignClient.class)
public interface CmsClient {

    @DeleteMapping("minioservice/minio-upload/deleteFile")
    Results deleteFile(@RequestParam("bucketName") String bucketName, @RequestParam("objectName") String objectName);

    @PostMapping("/cmsservice/cms-activity/getAllActivityList")
    public Results getAllActivityList(
    );

    @PostMapping("/cmsservice/cms-activity/updateActivity")
    Results updateActivity(@RequestBody CmsActivity cmsActivity);

}